package org.xtense.tests;

import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.XMLWriter;

public class VisitorTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		Document doc = DocumentHelper
				.parseText("<tempRoot><book year=\"2000\"><title>Database System Concept</title><price>26.50</price><author id=\"001\"><name>Kaily Jone</name><email>kjone@research.bell-labs.com</email></author><author id=\"102\"><name>Silen Smith</name></author></book><book year=\"2001\"><title>Introduction to XML</title><price>18.80</price><author id=\"103\"><name>Kaily Jone</name></author><book>what are you ** doing?</book></book><book>aaaaaa</book></tempRoot>");
		// doc.accept(new UpdateVisitor(1, 1, 1, null, null));
		
		OutputFormat format = OutputFormat.createPrettyPrint();
		XMLWriter writer = new XMLWriter(System.out, format);
		writer.write(doc);

	}

}
